package aModelLayer;

import azServiceLayer.R;

public class Game  {
	
	private Character mCharacter;
	
	private BattleCharacter[] battleCharacters;
	
	private Menu mTitleMenu;
	private Room currentRoom;
	private Room startRoom;
	
	public Game(){
		//mTitleMenu = new TitleMenu(new String[]{Messages.getString("Game.menupotion1"),Messages.getString("Game.1"),Messages.getString("Game.2")}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		mTitleMenu = new Menu(new String[]{"Start New Game", "Load Game", "Exit"});
		
		startRoom = new Room(R.floor.one.start);
		currentRoom = startRoom;
		
		mCharacter = new Character(currentRoom);
		
		battleCharacters = new BattleCharacter[3];
		battleCharacters[BattleCharacter.WARRIOR] = new BattleCharacter(BattleCharacter.WARRIOR);
		battleCharacters[BattleCharacter.MAGE] = new BattleCharacter(BattleCharacter.MAGE);
		battleCharacters[BattleCharacter.THIEF] = new BattleCharacter(BattleCharacter.THIEF);


		System.out.println(Messages.getString("Game.3")); //$NON-NLS-1$
		
	}

	public Menu getTitleMenu(){
		return mTitleMenu;
	}
	
	public Character getCharacter(){
		return mCharacter;
	}
	
	public BattleCharacter[] getBattleCharacters() {
		return battleCharacters;
	}
	
	public Room getCurrentRoom(){
        return currentRoom;
	}

	public void setCurrentRoom(Room room){
		currentRoom = room;
	}

	public void newGameStats() {
		for (int i = 0; i < battleCharacters.length; i++)
			battleCharacters[i].newGameStats();
	}
}
